package top.lywivan.mm.service.imp;

import top.lywivan.mm.dao.DictDao;
import top.lywivan.mm.pojo.Dict;
import top.lywivan.mm.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class DictServiceImpl implements DictService {
    @Autowired
    private DictDao dictDao;
    @Override
    @Transactional(readOnly = true)
    public List<Dict> findDictListByType(Integer typeId) {
        return dictDao.findDictListByType(typeId);
    }
}
